
<div id="isi">
    <div class="atas"></div>
    <div class="tengah">
        <div id="isidalam">
            <div class="putihatasCopy"></div>
            <div class="putihtengahCopy">
                <div class="headingform din">Current Term Schedule</div>
            </div>
            <div class="putihbawahCopy"></div>
            <div class="putihtengahform">
                <div id="schedule">
                    <div id="kategori" class="">

                        <a href="<?php echo base_url() ?>itcourse/itcourse_con/schedules/1">Today</a>
                        <a href="<?php echo base_url() ?>itcourse/itcourse_con/schedules/2">Tomorrow</a>
                        <a href="<?php echo base_url() ?>itcourse/itcourse_con/schedules/3">Curent Term</a>
                        <a href="<?php echo base_url() ?>itcourse/itcourse_con/schedules/6">Next Term</a>
                        <a href="<?php echo base_url() ?>itcourse/itcourse_con/schedules/4">Anual</a>
                        <a href="<?php echo base_url() ?>itcourse/itcourse_con/schedules/5">Specific Class</a>
                    </div>
                    <div id="isijadwalall">
                        <div class="jadwalfor3"><?php if (isset($term)) echo 'Term-' . $term['NO_TERM'] . ' ' . $term['TAHUN']; ?></div>
                        <p class="clear"></p>
                        <table border="0" cellpadding="0" cellspacing="0" id="tabelbandung"  width="100%">
                            <tr>
                                <th colspan="2"><span class="dpr3">Kelas Pelatihan</span></th>
                                <th><span class="dpr3">Start</span></th>
                                <th><span class="dpr3">Schedule</span> </th>
                            </tr>
                            <?php
                            if (!empty($kelas)) {
                                echo '<tr>
                                                                        ';
                                for ($i = 0; $i < count($kelas); $i++) {
                                    echo '
                                                                              <tr>
                                                                                <td width="20" class="buletdepan">&nbsp;</td>
                                                                                <td width="230" ><span class="dpr3"><div class="kodekeren">' . $kelas[$i]['KODE_PELATIHAN'] . '-' . $kelas[$i]['ANGKATAN'] . ' | ' . $kelas[$i]['NAMA_PELATIHAN'] . '</div></span> </td>
                                                                                <td class="dpr4 hulk">' . $kelas[$i]['TGL_MULAI'] . '</td>
                                                                                <td class="dpr4">';
                                    if (isset($kelas[$i]['JADWAL'])) {
                                        for ($j = 0; $j < count($kelas[$i]['JADWAL']['hari']); $j++) {
                                            echo '<div class="rambo">' .$kelas[$i]['JADWAL']['hari'][$j] . '<br/> ' . $kelas[$i]['JADWAL']['jam'][$j] . '</div>';
                                        }
                                    }
                                    echo '</td>
                                                                          </tr>
                                                                            ';
                                }
                                echo '</tr>
                                                                        ';
                            }
                            ?>
                        </table>
                        <div id="down2">
                            <?php if(!empty($term['PRODUCTLIST'])) {?>
                            <a href="<?php echo $term['PRODUCTLIST'] ?>">Download Course Schedule</a>
                            <?php }?>
                        </div>
                    </div>

                </div>

            </div>
            <div class="putihbawah"></div>
        </div>
    </div>

</div><!---end #isi--->